package com.ruoyi.goods.domain.vo;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import com.ruoyi.goods.domain.BmSpecification;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 商品信息管理对象 bm_specification
 *
 * @author ruoyi
 * @date 2023-08-02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ConsignmentList extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private String goodsCode;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 仓库编号 */
    @Excel(name = "仓库编号")
    private String warehouseCode;

    /** 商品分类id */
    @Excel(name = "商品分类id")
    private Long categoryId;

    /** 品牌id */
    @Excel(name = "品牌id")
    private Long brandId;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 商品详情 */
    @Excel(name = "商品详情")
    private String goodsDetails;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String goodsMark;

    /** 删除标记 0.未删除 1.已删除 */
    @Excel(name = "删除标记 0.未删除 1.已删除")
    private Long isDeleted;
    @Excel(name = "商品规格")
    private List<BmSpecification> bmSpecificationList;

    @Excel(name = "库存")
    private Long stock;

    @Override
    public String toString() {
        return "ConsignmentList{" +
                "id=" + id +
                ", goodsCode='" + goodsCode + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", warehouseCode='" + warehouseCode + '\'' +
                ", categoryId=" + categoryId +
                ", brandId=" + brandId +
                ", sort=" + sort +
                ", goodsDetails='" + goodsDetails + '\'' +
                ", goodsMark='" + goodsMark + '\'' +
                ", isDeleted=" + isDeleted +
                ", bmSpecificationList=" + bmSpecificationList +
                ", stock=" + stock +
                '}';
    }
}
